package com.example.zyl.common.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SaveBatchList<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 批量保存的数量
     */
    private Integer bachSize = 1000;

    /**
     * 批量保存的方法名(即Mapper的方法名)
     */
    private String bachMethodName = "insertOrUpdateBatch";

    /**
     * 批量保存的对象
     */
    private Class<?> bachMapperClass;

    /**
     * 批量保存的对象列表
     */
    private List<T> bachList;
}
